home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 7 / PC World Interactive 7.iso / program / cprog.EXE / CC_1.ZIP / RINDEX.C < prev    next >
Text File  |  1988-02-01  |  384b  |  13 lines

  1. /*
  2. ** return pointer to the last occurrence of c in s
  3. */
  4. rindex(s, c) char *s, c; {
  5.   char *rindex;
  6.   rindex = 0;
  7.   while(*s) {
  8.     if(*s == c) rindex = s;
  9.     s++;
  10.     }
  11.   return rindex;
  12.   }
  13.